import axios from '@/utils/axios';

// 获取备份列表
export function backups_list(params = {}) {
  return axios({
    url: '/backups/list',
    method: 'get',
    params
  })
}
// 修改备份名称
export function backups_edit(data = {}) {
  return axios({
    url: '/backups/edit',
    method: 'put',
    data
  })
}
// 删除备份
export function backups_del(data = {}) {
  return axios({
    url: '/backups/del',
    method: 'delete',
    data
  })
}
// 添加备份
export function backups_add(data = {}) {
  return axios({
    url: '/backups/add',
    method: 'post',
    data
  })
}
// 恢复备份
export function backups_reset(data = {}) {
  return axios({
    url: '/backups/reset',
    method: 'post',
    data
  })
}
// 获取数据表列表
export function backups_tablelist(data = {}) {
  return axios({
    url: '/backups/tablelist',
    method: 'get',
    data
  })
}
// 备份数据表
export function backups_addOne(data = {}) {
  return axios({
    url: '/backups/addOne',
    method: 'post',
    data
  })
}
// 恢复数据表
export function backups_resetOne(data = {}) {
  return axios({
    url: '/backups/resetOne',
    method: 'post',
    data
  })
}